/*
 * @Author: your name
 * @Date: 2021-11-15 14:41:53
 * @LastEditTime: 2021-11-16 15:32:16
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /a1902-apractical2/my-react-dome/src/stores/reducer.js
 */

const initialState = {
    user: {}
}

export default (state = initialState, { type, payload }) => {
    switch (type) {
    
    case 'LOIGNS':
        return {...state, user: {...payload}}
    default:
        return {...state}
    }
}
